tongfusoft.addMainTask = function() {
}
tongfusoft.addMainTask.prototype = {
		
		save:function(){
			var common = new tongfusoft.common();
			var params={};
			params["taskName"]=$("#taskName").val();
			params["taskNote"]=$("#taskNote").val();
			common.post('task/addMainTask?save',params,function(data){
				
				if(data.state=='success'){
					document.location.href=common.getContextPath("task/mainTaskList?page");
				}else{
					
					alert("保存失败")
				}
				
			});
			
		}
		
}

$(function(){
	
	$("#btnSave").click(function(){
	
		var obj=new tongfusoft.addMainTask();
		obj.save();
	})
})